{extend name="base"/}
{block name="css"}
{/block}
{block name="content"}
<div style="padding: 15px;">
    <fieldset class="layui-elem-field">
        <legend>商城管理 - 商品列表</legend>
        <div class="layui-field-box">
          <form class="layui-form" action="">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="text" class="layui-input searchVal" placeholder="请输入搜索的商品名称">
                </div>
                <a class="layui-btn search_btn" data-type="reload">搜索</a>
            </div>
          </form>
          <hr>
          <table  class="layui-hide" id="list" lay-filter="goods"></table>
        </div>
    </fieldset>
  </div>
<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
      <button class="layui-btn  layui-btn-sm layui-btn-normal add">添加商品</button>
    </div>
</script>
<script type="text/html" id="goodsImg">
	<img src="{{d.img1}}"  style="display: inline-block; width: 80%; height: 100%;"/>
</script>


<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs goodsEdit shops_xq" id="goodsEdit" data-id="{{d.id}}" lay-event="detail">编辑</a>
    {{# if(d.is_on== '是'){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" data-id="{{d.id}}" style="background-color: #227dff;" lay-event="down">下架</a>
    {{# }else{ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" data-id="{{d.id}}" lay-event="up">上架</a>
    {{# } }}
</script>


{/block}
{block name="js"}
<script type="text/javascript" src="/static/backend/js/goodsList.js?t=6"></script>
{/block}
